import request from '@/utils/request'

// 获取库房信息
export function storeList(query) {
  return request({
    url: '/archive/personnelEntryExit/storeList',
    method: 'get',
    params: query
  })
}

// 获取库房管理员
export function getStoreName(query) {
  return request({
    url: '/archive/storeRole/list',
    method: 'get',
    params: query
  })
}

// 获取人员出入库列表
export function list(query) {
  return request({
    url: '/archive/personnelEntryExit/list',
    method: 'get',
    params: query
  })
}

// 增加人员出入库信息
export function addPerson(data) {
  return request({
    url: '/archive/personnelEntryExit',
    method: 'post',
    data: data
  })
}

// 获取人员出入库详情
export function getPersonDetail(id) {
  return request({
    url: '/archive/personnelEntryExit/' + id,
    method: 'get'
  })
}

// 修改人员出入库信息
export function updatePerson(data) {
  return request({
    url: '/archive/personnelEntryExit',
    method: 'put',
    data: data
  })
}

// 删除人员出入库信息
export function deletePerson(id) {
  return request({
    url: '/archive/personnelEntryExit/' + id,
    method: 'delete'
  })
}

